const state = {
	lang: 'cs',
}
const getters = {}
const actions = {
	changeLang: function (store, payload) {
		console.log(store)
		console.log('触发了 login 模块 changeLang:', payload)
		store.commit('CHANGE_LANG', payload)
	},
}

const mutations = {
	CHANGE_LANG: function (state, payload) {
		state.lang = payload.lang
	},
}

export default {
	namespaced: true,
	state,
	actions,
	getters,
	mutations,
}
